package com.example.demo.dao.report;

import com.example.demo.po.report.Report;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface SimilarityDao {
    Integer insertSim(@Param("rid1") Integer rid1, @Param("rid2") Integer rid2, @Param("sim") Double sim);
    Integer selectSimCountByRid(@Param("rid")Integer rid,@Param("min")Double min,@Param("max")Double max);
    //获取报告的相似报告
    List<Report> selectSimReportListByRid(@Param("rid")Integer rid,@Param("min")Double min,@Param("max")Double max,
                                          @Param("pageNumKey") int pageNum, @Param("pageSizeKey") int pageSize);
}
